<!DOCTYPE html>
<html>
<head>
    <title>Kli Olami Login</title>
</head>
<body>

<div id="fb-root"></div>

    <script>
      window.fbAsyncInit = function() {
        FB.init({
          appId   : '<?php echo $this->appId; ?>',
          status  : true, // check login status
          cookie  : true // enable cookies to allow the server to access the session
        });

        // whenever the user logs in, we refresh the page
        FB.Event.subscribe('auth.login', function() {
          window.location = '/';
        });
      };

      (function() {
        var e = document.createElement('script');
        e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>

	<p><a href="<?php echo $this->LoginURL; ?>"><img src="http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif"></a></p>
	<p><a href="/kli">Map of Kli olami</a></p>

<?php echo $this->partial('ga.phtml'); ?>
</body>
</html>